package com.inspur.edp.ai.flow.metadata.json;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;

/**
 * @author lizhaorui
 * @date 2025/9/15
 * @description
 */

@Data
public class JsonArrayType implements JsonType {

    public static final String TYPE = "array";

    @JsonDeserialize(using = JsonTypeDeserializer.class)
    private JsonType items;

    @Override
    public String getType() {
        return TYPE;
    }

    @Override
    public JsonType newInst() {
        return new JsonArrayType();
    }
}